
#include "Chessboard.h"
#include <iostream>

Chessboard::Chessboard()
{
  for (auto& row : grid_)
    for (char& ch : row)
      ch = '+';
}

void Chessboard::SetPiece(int x, int y, char pi)
{
  grid_[x][y] = pi;
}

void Chessboard::Draw()
{
  for (auto& row : grid_) {
    for (auto& ch : row)
      std::cout << ch;
    std::cout << std::endl;
  }
}
